package com.lr.springbootdemo.custom;

import com.lr.springbootdemo.bean.Constants;
import org.springframework.cache.annotation.Cacheable;

import java.lang.annotation.*;

/**
 * .
 * Created by li.rui on 2016-06-21.
 */
@Cacheable(value = Constants.CACHE_NAME,keyGenerator = "myCacheKeyGenerator")
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface MyCacheable {

}
